package com.xiaoyu.lanling.event.audio

import com.xiaoyu.base.event.BaseEventWithTag

class AudioResultEvent(val requestTag: Any, val filePath: String, val duration: Long) : BaseEventWithTag(requestTag) {

    fun getDurationInSecond(): Int {
        var durationInSecond = (duration / 1000).toInt()
        if (durationInSecond <= 0) {
            durationInSecond = 1
        }
        return durationInSecond
    }
}